<?php
$baseUrl = Yii::app()->baseUrl;  
?>
<div class="dialog_title">
   <a id="receipt_close" class="dialog_x">X</a>
    <h1>Attach Receipt</h1>
</div>
<div class="clear"></div>
<br/>
<div id="sideNav_wrapper">
<div id="sideNav">
<div class="sideNavFloatContainer">
<div id="search" class="section filterContainer">
<form class="form" id="receipt_filter_form">
<fieldset><legend>Filter</legend>
<ol>
	<li>
	<ol>
		<li><label class="dateField">From</label> <input type="text"
			class="calendar semwal_dtpicker" id="startDate"
			name="startDate" value="<?php echo date('Y-m-d')?>"></li>
		<li><label class="dateField">To</label> <input type="text"
			class="calendar semwal_dtpicker" id="endDate"
			name="endDate" value="<?php echo date('Y-m-d')?>"></li>
	</ol>
	</li>
	<ul>
		<li class="label-auto"><input type="radio" checked="checked"
			value="1" id ="unattachedStatus" class="filter-checkbox" name="receipt_filter_status"> <label
			for="unattachedFilter">Unattached Recceipts</label></li>
		<li class="label-auto"><input type="radio" 
			value="2"  id = "attachedFilter" class="filter-checkbox" name="receipt_filter_status"> <label
			for="attachedStatus">Attached Receipts</label></li>
		<li class="label-auto"><input type="radio" 
			value="3" id="deletedStatus" class="filter-checkbox" name="receipt_filter_status"> <label
			for="deletedFilter">Deleted Receipts</label></li>			
	</ul>

</ol>
</fieldset>
</form>
</div>
<div class="section">
<div class="button">
<a id="btn_receipt_search">Search</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a id="btn_receipt_reset" class="reset" href="#">Reset</a></div>
</div>
</div>
</div>
</div>

<div id="content_wrapper">
<div id="editheader">
<div class="buttons_container hidden" id="receipts_actions"
	style="display: block;">

<div class="floatWrapper">
<div class="floatLeft buttons_container marginBottom"
	id="receipts_buttonsContainer"><!-- Action Buttons -->
<div class="button add" id="button_importButton"><a class="dropdown" href="#">Import from</a>
</div>
<input id="file" name="file" type="file" style="visibility:hidden;" multiple >
<div class="floatLeft marginLeft" id="receipts_selectAll">
<ol class="form one-line">
	<li class="checkbox"><input type="checkbox"
		 id="receipts_selectAllCheckbox"> <label
		for="receipts_selectAllCheckbox">Select All</label></li>
</ol>
</div>
<div class="button undelete" id="receipts_batchUndelete"
	style="display: none;"><a>Undelete</a>
</div>
<div class="button delete" id="receipts_batchDelete"><a href="#" class="iconButton"></a></div>
</div>
</div>
</div>

<div class="page-header floatWrapper marginBottom">

<div class="hidden" id="file-uploader-page" style="display: block;">
<div class="qq-uploader">
<div class="qq-upload-drop-area" id="qq-upload-drop-area">
<div class="link" id="reports_popup_import_computer"
	style="position: relative; overflow: hidden; direction: ltr; display: none;"><a>Computer</a><input
	type="file" name="file"style="position: absolute; right: 0px; top: 0px; font-family: Arial; font-size: 118px; margin: 0px; padding: 0px; cursor: pointer; opacity: 0;"></div>
<span><strong>Quick Import:</strong> Drag and drop receipts here from
your computer.</span></div>
<ul class="qq-upload-list hidden"></ul>
 <span id="spinter-uploading" style="display: none;"><img  alt="uploading" src="<?php echo $baseUrl;?>/images/spinner_2x.gif">Uploading... </span>
</div>
</div>
</div>
<div class="floatWrapper" id="allReceiptsContainer">
<?php if(isset($message)):?>
<?php echo $message;?>
<?php else:?>
<?php foreach ($rows as $row):?>
<div id="receipt_<?php echo $row['Id'];?>" class="receipt_wrapper">
<div class="receipt OPEN"><span class="receiptID"><img id="img_receipt_<?php echo $row['Id'];?>" src="<?php echo $row['Url'];?>"
	id="receiptimg_<?php echo $row['Id'];?>" class="receiptimage"><a
	href="<?php echo $row['Url'];?>"
	class="fancy" rel="receiptList"></a></span>
<div class="scanStatus hidden" style="display: none;"></div>
<div class="receipt_caption">
<div class="receipt_actions">
<div id="attach_receipt_button_<?php echo $row['Id']; ?>" class="button add attach_receipt_button"><a>Attach</a></div>
<div class="button delete delete_receipt_button"><a class="iconButton"
	href="#"></a></div>
</div>
</div>
</div>
</div>
<?php endforeach;?>
<?php echo $paginationString;?>
<?php endif;?>

</div>
</div>

